<form action="<?php echo $action ?>" method="post" accept-charset="utf-8">
    <ul>
        <li>
            <?php echo form::label('name', 'Kategória neve'); ?>
            <?php if(isset($category)) echo form::input('name', $category->name); else echo form::input('name');?>
            <?php if(isset($errors['name']))echo ($errors['name']) ?>
        </li>
        <li>
            <?php echo form::label('description', 'Kategória leírása'); ?>
            <?php if(isset($category)) echo form::input('description', $category->description); else echo form::input('description');?>
            <?php if(isset($errors['description']))echo ($errors['description']) ?>
        </li>    
    </ul>
    <button type="submit">Mentés</button>
</form>